<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>全保网后台管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all"/>
    <link rel="stylesheet" href="/css/main.css" media="all"/>
    <!--以上是蓝色颜色ui的设置，可去除-->
    <!--	<link rel="stylesheet" href="css/colour.css" />-->
</head>
<body class="main_body">
<div class="layui-layout layui-layout-admin">
    <!-- 顶部 -->
    <div class="layui-header header">
        <div class="layui-main">
            <!-- 显示/隐藏菜单 -->
            <a href="javascript:;" class="iconfont hideMenu icon-menu1"></a>
            <a href="#" class="logo">全保网后台管理系统</a>

            <!-- 天气信息 -->
            <div class="weather" pc>
                <div id="tp-weather-widget"></div>
                <script>(function (T, h, i, n, k, P, a, g, e) {
                    g = function () {
                        P = h.createElement(i);
                        a = h.getElementsByTagName(i)[0];
                        P.src = k;
                        P.charset = "utf-8";
                        P.async = 1;
                        a.parentNode.insertBefore(P, a)
                    };
                    T["ThinkPageWeatherWidgetObject"] = n;
                    T[n] || (T[n] = function () {
                        (T[n].q = T[n].q || []).push(arguments)
                    });
                    T[n].l = +new Date();
                    if (T.attachEvent) {
                        T.attachEvent("onload", g)
                    } else {
                        T.addEventListener("load", g, false)
                    }
                }(window, document, "script", "tpwidget", "//widget.seniverse.com/widget/chameleon.js"))</script>
                <script>tpwidget("init", {
                    "flavor": "slim",
                    "location": "WX4FBXXFKE4F",
                    "geolocation": "enabled",
                    "language": "zh-chs",
                    "unit": "c",
                    "theme": "chameleon",
                    "container": "tp-weather-widget",
                    "bubble": "disabled",
                    "alarmType": "badge",
                    "color": "#FFFFFF",
                    "uid": "U9EC08A15F",
                    "hash": "039da28f5581f4bcb5c799fb4cdfb673"
                });
                tpwidget("show");</script>
            </div>
            <!-- 顶部右侧菜单 -->
            <div class="refresh">
                <i class="layui-icon layui-anim  layui-anim-loop">&#x1002;</i>
            </div>
            <ul class="layui-nav top_menu">

                <li class="layui-nav-item" mobile>
                    <a href="exit" class="signOut"><i class="iconfont icon-loginout"></i> 退出</a>
                </li>

                <li class="layui-nav-item" pc>

                    <a href="javascript:;">
                        <img src="../images/tx.png" class="layui-circle" width="35" height="35">
                        <cite id="adminName"> </cite>
                    </a>
                    <dl class="layui-nav-child">
                        <!--<dd><a href="javascript:;" data-url="changePwd.html"><i class="iconfont icon-shezhi1"-->
                        <!--data-icon="icon-shezhi1"></i><cite>修改密码</cite></a>-->
                        <!--</dd>-->
                        <!--<dd><a href="javascript:;" class="changeSkin"><i class="iconfont icon-huanfu"></i><cite>更换皮肤</cite></a></dd>-->
                        <dd><a href="exit" class="signOut" onClick="logout()"><i
                                class="iconfont icon-loginout"></i><cite>退出</cite></a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <!-- 左侧导航 -->
    <div class="layui-side layui-bg-black">
        <div class="navBar layui-side-scroll"></div>
    </div>
    <!-- 右侧内容 -->
    <div class="layui-body layui-form">
        <div class="layui-tab marg0" lay-filter="bodyTab" id="top_tabs_box">
            <ul class="layui-tab-title top_tab" id="top_tabs">
                <li class="layui-this" lay-id=""><i class="iconfont icon-computer"></i> <cite>首页</cite></li>
            </ul>
            <ul class="layui-nav closeBox">
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="iconfont icon-caozuo"></i> 页面操作</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" class="closePageOther"><i class="iconfont icon-prohibit"></i>
                            关闭其他</a></dd>
                        <dd><a href="javascript:;" class="closePageAll"><i class="iconfont icon-guanbi"></i> 关闭全部</a>
                        </dd>
                    </dl>
                </li>
            </ul>
            <div class="layui-tab-content clildFrame">
                <div class="layui-tab-item layui-show">
                    <iframe src="main.html"></iframe>
                </div>
            </div>
        </div>
    </div>
    <!-- 底部 -->
    <div class="layui-footer footer">
        <p>技术支持：会友科技有限公司</p>
    </div>
</div>
<!-- 移动导航 -->
<div class="site-tree-mobile layui-hide"><i class="layui-icon">&#xe602;</i></div>
<div class="site-mobile-shade"></div>
<script type="text/javascript" src="../js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="../layui/layui.js"></script>
<script type="text/javascript" src="../js/leftNav.js"></script>
<script type="text/javascript" src="../js/adminIndex.js"></script>
<script>
    $(".refresh").hover(function () {
        $(this).find(".layui-icon").toggleClass("layui-anim-rotate");
    });
    $(".refresh").click(function () {
        location.reload();
    })
</script>
<script>

    var navsUrl = "/json/admin_navs.json";


    function login() {

        $.ajax({
            type: "post",
            url: "/getSession",
            data: {},
            dataType: "json",
            success: function (data) {
                if (data.status == 0) {
                    $("#adminName").html(data.result.admin.realname);
                } else {
                    window.location.href = "/index.html";
                }
            },
            error: function () {
                window.location.href = "/index.html";
            }
        });

    }

    $(document).ready(function () {
        login();

    });

    function logout() {

        $.ajax({
            type: "post",
            url: "exit",
            data: {},
            async: false,
            success: function (data) {

            }
        });

    }
</script>
</body>
</html>